<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/3/31 0031
  Time: 上午 9:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%--<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>--%>

<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<%--<form action="/user/add" method="POST">--%>
    <%--&lt;%&ndash;方法一&ndash;%&gt;--%>
    <%--&lt;%&ndash;<br/>&ndash;%&gt;--%>
       <%--&lt;%&ndash;<s:form method="post" modelAttribute="user">&ndash;%&gt;--%>
           <%--&lt;%&ndash;UserName:<sf:input path="username"/> <sf:errors path="username"/><br/>&ndash;%&gt;--%>
           <%--&lt;%&ndash;PaaaWrod:<sf:input path="password"/> <sf:errors path="password"/><br/>&ndash;%&gt;--%>
           <%--&lt;%&ndash;NickName:<sf: input path="nickname"/><sf:errors path="nickname"/> <br/>&ndash;%&gt;--%>
           <%--&lt;%&ndash;<input type="submit" value="添加用户"/><br/>&ndash;%&gt;--%>
       <%--&lt;%&ndash;</s:form>&ndash;%&gt;--%>
    <%--&lt;%&ndash;<br/>&ndash;%&gt;--%>
        <%--&lt;%&ndash;方法二&ndash;%&gt;--%>
    <%--username: <input type="text" name="username"><br/>--%>
    <%--nickname:<input type="text" name="nickname"><br/>--%>
    <%--password <input type="password" name="password"><br/>--%>
    <%--<input type="submit" value="提交"><br/>--%>
<%--</form>--%>
<sf:form method="post" modelAttribute="user" enctype="multipart/form-data">
    UserName:<sf:input path="username"/> <sf:errors path="username"/><br/>
    NickName:<sf:input path="nickname"/><sf:errors path="nickname"/> <br/>
    PassWord:<sf:password path="password"/><sf:errors path="password"/> <br/><br/>
    Attach:<input type="file" name="attachs"><br/><br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="file" name="attachs"><br/><br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="file" name="attachs"><br/><br/>
    <input type="submit" value="添加用户"><br/>
</sf:form>
</body>
</html>
